<html>
<head>
<style>
@page {
  size: 200px 200px;
  margin: 10px;
}
body {
  border: 1px solid orange;
  margin: 0;
}
table {
    -fs-table-paginate: paginate;
}
th {
  background-color: red;
}
td {
  background-color: blue;
  padding-top: 1px;
  color: white;
  font-size: 16px;
}
th, td {
    border: 1px solid black;
}
td {
  border-top: 1px solid green;
}
</style>
</head>
<body>
<div style="height: 70px;"></div>

<table>
    <thead>
        <tr><th>HA</th><th>HB</th></tr>
    </thead>
    <tbody>
      <tr>
        <td>
          aa
          <br/>1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9
          <br/>1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9
        </td>
        <td>b</td>
      </tr>
      <tr>
        <td>c</td>
        <td>
          dd
          <br/>1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9
          <br/>1<br/>2<br/>3<br/>4<br/>5<br/>6<br/>7<br/>8<br/>9
        </td>
      </tr>
    </tbody>
</table>

</body>
</html>
